package org.bhavani.hashtable;

import java.util.Hashtable;

public class simpleHashtableImp {

	public static void main(String[] args) {
	 Hashtable<String,Integer> stTable = new Hashtable<String,Integer>();
	 
//	 Integer i = new Integer(1);
//	 Integer j = new Integer(1);
//	 stTable.put("durga", i);
//	 stTable.put("rao", i);
//	 stTable.put("rao", i+1);
//	 if (stTable.get("rao").equals(i+1))
//	 {
//		 System.out.println("Both point to the same");
//	 }
//	 stu
	 stTable.put("xyz",1);
	 stTable.put("xyz",2);
	 stTable.put("xyz",3);
 
	 /* durga will write some code put value for key "xyz" */
	 stTable.put("xyz", stTable.get("xyz") + 1);
	 
	 /* now you incriment whatever value is in "xyz" by 1 */
	 for (String i : stTable.keySet()) {
		System.out.println(i+" " +stTable.get(i));
	}
	}

}
